export interface general {
  code: number
  message: string
  ok: boolean
}

export interface codeState {
  code: number
  message: string
  data: string
  ok: boolean
}

export interface backLogin extends general {
  data: {
    name: string
    token: string
  }
}

export interface wx {
  redirectUri: string
  appid: string
  scope: string
  state: string
}

export interface wxType extends general {
  data: wx
}

//代表一个用户信息的数据类型
export interface UserInfo {
  id: number
  createTime: string
  updateTime: string
  isDeleted: number
  param: {}
  openid: null
  nickName: null
  phone: string
  name: string
  certificatesType: string
  certificatesNo: string
  certificatesUrl: null
  authStatus: number
  status: number
}

//获取用户信息接口返回的数据的ts类型
export interface UseringoResponseData extends general {
  data: UserInfo
}
